import {expect, test} from '@oclif/test'

describe('clients:destroy', function () {
  test
    .stdout()
    .stderr()
    .nock('https://api.heroku.com:443', api => {
      api.delete('/oauth/clients/f6e8d969-129f-42d2-854b-c2eca9d5a42e').reply(200)
    })
    .command(['clients:destroy', 'f6e8d969-129f-42d2-854b-c2eca9d5a42e'])
    .it('destroys the client', ctx => {
      expect(ctx.stderr).to.contain('Destroying f6e8d969-129f-42d2-854b-c2eca9d5a42e... done\n')
    })
})
